package banking;

public class Customer {
    private Account account;
    private String firstName;
    private String lastName;
    private int age;
    //业务实体——客户的属性：包括账户、名、姓和年龄
    public Customer(){}
    public Customer(Account acct){
        account=acct;
    }
    public Customer(String f,String l, int cAge){
        firstName=f;
        lastName=l;
        age = cAge;
    }//初始化成员变量
    public String getFirstName(){
        return firstName;
    }//获得客户名字
    public String getLastName(){
        return lastName;
    }//获得客户的姓

    public int getAge() {
        return age;
    }//获得客户年龄

    public Account getAccount(){
        return account;
    }//获得账户
    public void setAccount(Account acct){
        account=acct;
    }//修改账户
}
